Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(createReadStream): implement backpressure #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vdiez
Copy link

@vdiez vdiez commented Mar 2, 2021

continue reading until stream.push returns false, as specified by streams API

I was running into race conditions where streams were being closed twice on end (instead of just once). Implementing the backpressure from Node solved the issue.

@julien-f julien-f changed the title implement stream backpressure fix(createReadStream): implement backpressure Apr 11, 2021
@vdiez
Copy link
Author

vdiez commented Apr 22, 2021

Hi @julien-f . Any option to have this merged? Thanks!

@ekoeryanto
Copy link

same with createWriteStream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants